package com.sc.nft.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sc.nft.entity.LlRegion;
import com.sc.nft.mapper.LlRegionMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (LlRegion)表Dao层
 *
 * @author 王伟成
 * @since 2023-11-25 16:00:05
 */
@Slf4j
@Repository
public class LlRegionDao extends ServiceImpl<LlRegionMapper, LlRegion> {



    public List<LlRegion>getLlRegion(String pid){
        LambdaQueryWrapper<LlRegion> objectLambdaQueryWrapper = Wrappers.lambdaQuery();
        objectLambdaQueryWrapper.eq(LlRegion::getPid,pid);
        return list(objectLambdaQueryWrapper);
    }
}
